package com.yudean.esb.domain.esb;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author : DL<duanlei@gdyd.com>
 * @version : 1.0
 */
public class EsbServiceMapper implements Serializable {
    private static final long serialVersionUID = -3003513790809364255L;
    private String ID;
    private String serviceID;
    private String tbColName;
    private String tbColDesc;
    private String nodeName;
    private String nodeDesc;
    private String mapperType;
    private String dataType;
    private String isAuthorityField;
    private String isQueryField;

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getServiceID() {
        return serviceID;
    }

    public void setServiceID(String serviceID) {
        this.serviceID = serviceID;
    }

    public String getTbColName() {
        return tbColName;
    }

    public void setTbColName(String tbColName) {
        this.tbColName = tbColName;
    }

    public String getTbColDesc() {
        return tbColDesc;
    }

    public void setTbColDesc(String tbColDesc) {
        this.tbColDesc = tbColDesc;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getNodeDesc() {
        return nodeDesc;
    }

    public void setNodeDesc(String nodeDesc) {
        this.nodeDesc = nodeDesc;
    }

    public String getMapperType() {
        return mapperType;
    }

    public void setMapperType(String mapperType) {
        this.mapperType = mapperType;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getIsAuthorityField() {
        return isAuthorityField;
    }

    public void setIsAuthorityField(String isAuthorityField) {
        this.isAuthorityField = isAuthorityField;
    }

    public String getIsQueryField() {
        return isQueryField;
    }

    public void setIsQueryField(String iSQueryField) {
        this.isQueryField = iSQueryField;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof EsbServiceMapper)) return false;

        EsbServiceMapper that = (EsbServiceMapper) o;

        if (!ID.equals(that.ID)) return false;
        if (!Objects.equals(nodeDesc, that.nodeDesc)) return false;
        if (!nodeName.equals(that.nodeName)) return false;
        if (!serviceID.equals(that.serviceID)) return false;
        if (!Objects.equals(tbColDesc, that.tbColDesc)) return false;
        if (!tbColName.equals(that.tbColName)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = ID.hashCode();
        result = 31 * result + serviceID.hashCode();
        result = 31 * result + tbColName.hashCode();
        result = 31 * result + (tbColDesc != null ? tbColDesc.hashCode() : 0);
        result = 31 * result + nodeName.hashCode();
        result = 31 * result + (nodeDesc != null ? nodeDesc.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "EsbServiceMapper{" +
                "ID='" + ID + '\'' +
                ", serviceID='" + serviceID + '\'' +
                ", tbColName='" + tbColName + '\'' +
                ", tbColDesc='" + tbColDesc + '\'' +
                ", nodeName='" + nodeName + '\'' +
                ", nodeDesc='" + nodeDesc + '\'' +
                '}';
    }
}
